﻿using System;
using System.CodeDom.Compiler;
using System.Diagnostics;
using Google.Protobuf;
using Google.Protobuf.Reflection;

namespace EggLink.DanhengServer.Proto
{
	// Token: 0x02000ED3 RID: 3795
	[DebuggerDisplay("{ToString(),nq}")]
	public sealed class RogueEndlessAvatar : IMessage<RogueEndlessAvatar>, IMessage, IEquatable<RogueEndlessAvatar>, IDeepCloneable<RogueEndlessAvatar>, IBufferMessage
	{
		// Token: 0x17003018 RID: 12312
		// (get) Token: 0x0600A9FD RID: 43517 RVA: 0x001CAE0D File Offset: 0x001C900D
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageParser<RogueEndlessAvatar> Parser
		{
			get
			{
				return RogueEndlessAvatar._parser;
			}
		}

		// Token: 0x17003019 RID: 12313
		// (get) Token: 0x0600A9FE RID: 43518 RVA: 0x001CAE14 File Offset: 0x001C9014
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageDescriptor Descriptor
		{
			get
			{
				return RogueEndlessAvatarReflection.Descriptor.MessageTypes[0];
			}
		}

		// Token: 0x1700301A RID: 12314
		// (get) Token: 0x0600A9FF RID: 43519 RVA: 0x001CAE26 File Offset: 0x001C9026
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		MessageDescriptor IMessage.Descriptor
		{
			get
			{
				return RogueEndlessAvatar.Descriptor;
			}
		}

		// Token: 0x0600AA00 RID: 43520 RVA: 0x001CAE2D File Offset: 0x001C902D
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public RogueEndlessAvatar()
		{
		}

		// Token: 0x0600AA01 RID: 43521 RVA: 0x001CAE35 File Offset: 0x001C9035
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public RogueEndlessAvatar(RogueEndlessAvatar other) : this()
		{
			this.avatarId_ = other.avatarId_;
			this.avatarType_ = other.avatarType_;
			this._unknownFields = UnknownFieldSet.Clone(other._unknownFields);
		}

		// Token: 0x0600AA02 RID: 43522 RVA: 0x001CAE66 File Offset: 0x001C9066
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public RogueEndlessAvatar Clone()
		{
			return new RogueEndlessAvatar(this);
		}

		// Token: 0x1700301B RID: 12315
		// (get) Token: 0x0600AA03 RID: 43523 RVA: 0x001CAE6E File Offset: 0x001C906E
		// (set) Token: 0x0600AA04 RID: 43524 RVA: 0x001CAE76 File Offset: 0x001C9076
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint AvatarId
		{
			get
			{
				return this.avatarId_;
			}
			set
			{
				this.avatarId_ = value;
			}
		}

		// Token: 0x1700301C RID: 12316
		// (get) Token: 0x0600AA05 RID: 43525 RVA: 0x001CAE7F File Offset: 0x001C907F
		// (set) Token: 0x0600AA06 RID: 43526 RVA: 0x001CAE87 File Offset: 0x001C9087
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public AvatarType AvatarType
		{
			get
			{
				return this.avatarType_;
			}
			set
			{
				this.avatarType_ = value;
			}
		}

		// Token: 0x0600AA07 RID: 43527 RVA: 0x001CAE90 File Offset: 0x001C9090
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override bool Equals(object other)
		{
			return this.Equals(other as RogueEndlessAvatar);
		}

		// Token: 0x0600AA08 RID: 43528 RVA: 0x001CAE9E File Offset: 0x001C909E
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool Equals(RogueEndlessAvatar other)
		{
			return other != null && (other == this || (this.AvatarId == other.AvatarId && this.AvatarType == other.AvatarType && object.Equals(this._unknownFields, other._unknownFields)));
		}

		// Token: 0x0600AA09 RID: 43529 RVA: 0x001CAEDC File Offset: 0x001C90DC
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override int GetHashCode()
		{
			int num = 1;
			if (this.AvatarId != 0U)
			{
				num ^= this.AvatarId.GetHashCode();
			}
			if (this.AvatarType != AvatarType.None)
			{
				num ^= this.AvatarType.GetHashCode();
			}
			if (this._unknownFields != null)
			{
				num ^= this._unknownFields.GetHashCode();
			}
			return num;
		}

		// Token: 0x0600AA0A RID: 43530 RVA: 0x001CAF3A File Offset: 0x001C913A
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override string ToString()
		{
			return JsonFormatter.ToDiagnosticString(this);
		}

		// Token: 0x0600AA0B RID: 43531 RVA: 0x001CAF42 File Offset: 0x001C9142
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void WriteTo(CodedOutputStream output)
		{
			output.WriteRawMessage(this);
		}

		// Token: 0x0600AA0C RID: 43532 RVA: 0x001CAF4C File Offset: 0x001C914C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalWriteTo(ref WriteContext output)
		{
			if (this.AvatarId != 0U)
			{
				output.WriteRawTag(32);
				output.WriteUInt32(this.AvatarId);
			}
			if (this.AvatarType != AvatarType.None)
			{
				output.WriteRawTag(48);
				output.WriteEnum((int)this.AvatarType);
			}
			if (this._unknownFields != null)
			{
				this._unknownFields.WriteTo(ref output);
			}
		}

		// Token: 0x0600AA0D RID: 43533 RVA: 0x001CAFA8 File Offset: 0x001C91A8
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public int CalculateSize()
		{
			int num = 0;
			if (this.AvatarId != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.AvatarId);
			}
			if (this.AvatarType != AvatarType.None)
			{
				num += 1 + CodedOutputStream.ComputeEnumSize((int)this.AvatarType);
			}
			if (this._unknownFields != null)
			{
				num += this._unknownFields.CalculateSize();
			}
			return num;
		}

		// Token: 0x0600AA0E RID: 43534 RVA: 0x001CB000 File Offset: 0x001C9200
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(RogueEndlessAvatar other)
		{
			if (other == null)
			{
				return;
			}
			if (other.AvatarId != 0U)
			{
				this.AvatarId = other.AvatarId;
			}
			if (other.AvatarType != AvatarType.None)
			{
				this.AvatarType = other.AvatarType;
			}
			this._unknownFields = UnknownFieldSet.MergeFrom(this._unknownFields, other._unknownFields);
		}

		// Token: 0x0600AA0F RID: 43535 RVA: 0x001CB050 File Offset: 0x001C9250
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(CodedInputStream input)
		{
			input.ReadRawMessage(this);
		}

		// Token: 0x0600AA10 RID: 43536 RVA: 0x001CB05C File Offset: 0x001C925C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalMergeFrom(ref ParseContext input)
		{
			uint num;
			while ((num = input.ReadTag()) != 0U)
			{
				if (num != 32U)
				{
					if (num != 48U)
					{
						this._unknownFields = UnknownFieldSet.MergeFieldFrom(this._unknownFields, ref input);
					}
					else
					{
						this.AvatarType = (AvatarType)input.ReadEnum();
					}
				}
				else
				{
					this.AvatarId = input.ReadUInt32();
				}
			}
		}

		// Token: 0x040044F2 RID: 17650
		private static readonly MessageParser<RogueEndlessAvatar> _parser = new MessageParser<RogueEndlessAvatar>(() => new RogueEndlessAvatar());

		// Token: 0x040044F3 RID: 17651
		private UnknownFieldSet _unknownFields;

		// Token: 0x040044F4 RID: 17652
		public const int AvatarIdFieldNumber = 4;

		// Token: 0x040044F5 RID: 17653
		private uint avatarId_;

		// Token: 0x040044F6 RID: 17654
		public const int AvatarTypeFieldNumber = 6;

		// Token: 0x040044F7 RID: 17655
		private AvatarType avatarType_;
	}
}
